<template>
	<div class='container'>
		<h2>优化前</h2>
		<img class="image" src="@/assets/image/beforeLodash.png" alt="">
		<h2>优化后</h2>
		<img class="image" src="@/assets/image/afterLodash.png" alt="">
	</div>
</template>

<script setup>
import cloneDeep from 'lodash/cloneDeep'
const obj = {
	a: '1',
	b: {
		c: '2'
	}
}
const objCopy = cloneDeep(obj)
objCopy.b.c = '3'
console.log(objCopy)
console.log(obj)
</script>
<style lang='less' scoped>
.container {
	.image{
		width: 100%;
	}
}
</style>
